package com.example.demo041.service.impl;

import com.example.demo041.mapper.UserMapper;
import com.example.demo041.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("UserService")
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;
    @Override
    public String getName(Integer id) {
        return userMapper.selName(id);
    }
}
